package com.project.rfidpage.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.project.rfidpage.dto.RidDailyDto;
import com.project.rfidpage.dto.SearchByRqParam;
import com.project.rfidpage.entity.RidDaily;
import com.project.rfidpage.mapper.RidDailyMapper;
import com.project.rfidpage.service.RidDailyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RidDailyServiceImpl implements RidDailyService {

    @Resource
    private RidDailyMapper ridDailyMapper;

    @Override
    @DS("third")
    public List<RidDaily> getListForPage(SearchByRqParam param) {
        return ridDailyMapper.selectListByUid(param);
    }

    @Override
    @DS("third")
    public List<RidDailyDto> getDailyListForPage(SearchByRqParam param) {
        return ridDailyMapper.selectDailyListByUid(param);
    }
}
